package com.bytedance.frameworks.base.mvp;

import android.content.Context;
import android.os.Bundle;

public abstract class Interactor<V extends View> {
    public Context mContext;
    private V mView;

    public Interactor(Context context) {
        this.mContext = context;
    }

    public void releaseView() {
        this.mView = null;
    }

    public void onCreate(Bundle arg1, Bundle arg2) {
    }

    public void setView(V arg1) {
        this.mView = arg1;
    }

    public boolean hasView() {
        return this.mView != null;
    }

    public V getView() {
        return this.mView;
    }
}

